package com.tegtech.starter.swagger.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Getter;

@Component
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {
	
	/** 是否开启swagger */
	@Getter
	private static boolean enabled;

	/** 设置请求的统一前缀 */
	@Getter
	private static String pathMapping;

	public void setEnabled(boolean enabled) {
		SwaggerProperties.enabled = enabled;
	}

	public void setPathMapping(String pathMapping) {
		SwaggerProperties.pathMapping = pathMapping;
	}
	
}